<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="C" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: win
  Date: 2020/10/18
  Time: 15:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>实现set标签的使用</title>
</head>
<body>
<%--表示设置一个名字为name的属性，对应的值为zhangfei有效范围为page--%>
<c:set var="name" value="zhangfei" scope="page" ></c:set>
<c:out value="${name}"></c:out>
<hr>

<jsp:useBean id="person" class="com.zhf.demo01.Person" scope="page"></jsp:useBean>
<c:set property="name" value="guanyu" target="${person}"></c:set>
<c:set property="age" value="13" target="${person}"></c:set>
<c:out value="${person}"></c:out>
</body>
</html>
